﻿using System;

namespace JetBlack.AuthFeedBus.Distributor
{
    /// <summary>
    /// Roles a client may assume.
    /// </summary>
    [Flags]
    public enum ClientRole
    {
        /// <summary>
        /// No role.
        /// </summary>
        None = 0x00,

        /// <summary>
        /// The client may subscribe to data.
        /// </summary>
        Subscribe = 0x01,

        /// <summary>
        /// The client may publish data.
        /// </summary>
        Publish = 0x02,

        /// <summary>
        /// The client may request notifications of subscriptions.
        /// </summary>
        Notify = 0x04,

        /// <summary>
        /// The client may entitle subscriptions.
        /// </summary>
        Entitle = 0x08
    }
}
